package com.topc.search.domain;


import com.topc.search.base.ESBaseGeoPointEntity;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Data
@Document(indexName = "hotel-user-test",createIndex = true)
public class User extends ESBaseGeoPointEntity {

    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private String username;

    @Field(type = FieldType.Integer)
    private int age;

    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private String detail;


    //资产
    @Field(type = FieldType.Double)
    private double property;

    @Field(type = FieldType.Integer)
    private int sex;

}
